package com.example.powernodemall.Util;

import com.example.powernodemall.model.SecurityUser;
import org.springframework.security.core.context.SecurityContextHolder;



public class GetSecurityUserUtil {
    public static SecurityUser getSecurityUser() {
        return (SecurityUser)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
